import request from '../request'
import qs from 'qs'

export default {
    /**
     *  向后端传递请求参数是json,通过qs转换为参数格式,后端不需要@RequestBody注解接收参数
     */
    list(json) {
        return request({
            url:"carservice/carDictType/list",
            method: "post",
            data: qs.stringify(json),
        });
    },
    add(json) {
        return request({
            url:"carservice/carDictType/add",
            method: "post",
            data: qs.stringify(json),
        });
    },
    update(json) {
        return request({
            url:"carservice/carDictType/update",
            method: "post",
            data: qs.stringify(json),
        });
    },
    delete(dictId) {
        return request({
            url:"carservice/carDictType/delete?dictId="+dictId,
            method: "post",
            data: null,
        });
    },

}